/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marvell.JobSeeker;

import Connection.MyConnect;
import JDatePicker.DatePicker;
import JDatePicker.ObservingTextField;
import java.awt.Image;
import java.io.File;
import java.sql.CallableStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Date;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JComboBox;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import static marvell.JobSeeker.ViewStaticJobSeeker.id;

/**
 *
 * @author Quang
 */
public class UpdateJobSeeker extends javax.swing.JFrame {
    public ArrayList<String> skills = new ArrayList();
    public ArrayList<String> JSSkill = new ArrayList();
    public CallableStatement stm;
    public ResultSet rs;
    public DefaultListModel skilllist = new DefaultListModel();
    public DefaultListModel selectedlist = new DefaultListModel();
    public MyConnect iconnect;
    public String name;
    public int number;
    public ImageIcon icon;
    public static int id;
    
    String imagePath = "no-avatar.jpg";
    String filePath="src\\images\\JobSeeker_Image\\no-avatar.jpg";
    public UpdateJobSeeker() {
        initComponents();
        try
        {
            iconnect = new MyConnect();
            SeletAll();
            cmbAll(jcmbClass,"loadClasses");cmbAll(jcmbJob,"loadJobs");cmbAll(jcmbLocation,"loadLocations");cmbAll(jcmbLevel,"loadLevels");
            icon = new ImageIcon("C:\\Users\\Quang\\Documents\\NetBeansProjects\\Marvell\\src\\icon\\check-icon.png");
            listSkills();
            ////////////////////////////////// LOOP FOR SKILL AVAILABLE ///////////////////////////////////////
            for(int i = 0;i < skills.size(); i++){JlistSkill.setListData(skills.toArray());}
            for(int i = 0;i < skills.size(); i++){skilllist.addElement(skills.get(i).toString());}
            
            ////////////////////////////////// LOOP FOR JOBSEEKER's SKILL ///////////////////////////////////////
            for(int i = 0;i < JSSkill.size(); i++){jlistSelected.setListData(JSSkill.toArray());}
            for(int i = 0;i < JSSkill.size(); i++){selectedlist.addElement(JSSkill.get(i).toString());}
        }catch(Exception ex){ex.printStackTrace();}    
    }

    public void SeletAll()
    {
        try
        {
            String sql = "{call getAllJS(?)}";
            stm = MyConnect.iconnect.prepareCall(sql);
            stm.setInt(1,id);
            rs = stm.executeQuery();
            while(rs.next())
            {
                jlbID.setText(rs.getString(1));
                jtxtfFullName.setText(rs.getString(2));
                jtxtfBirthday.setText(rs.getString(3));
                jcmbGender.setSelectedItem(rs.getString(4));
                jtxtfAddress.setText(rs.getString(5));
                jtxtfEdu.setText(rs.getString(6));
                jtxtfExp.setText(rs.getString(7));
                jtxtfSalary.setText(rs.getString(8));
                jtxtfEmail.setText(rs.getString(9));
                jtxtfPhone.setText(rs.getString(10));
                jtxtfImage.setText(rs.getString(11));
                //// Status 12
                //// SKILL
                JSSkill.add(rs.getString(13));
                jcmbClass.setSelectedItem(rs.getString(14));
                jcmbLocation.setSelectedItem(rs.getString(15));
                jcmbLevel.setSelectedItem(rs.getString(16));
                jcmbJob.setSelectedItem(rs.getString(17));
            }    
        }catch(Exception ex){ex.printStackTrace();}    
    }     
    
    //////////////// LOAD ALL COMBOBOX ////////////////
    public void cmbAll(JComboBox cmb,String a)
    {
        CallableStatement stmH;
        ResultSet rsH;
        try
        {
            String sql = "{call "+a+"}";
            stmH = MyConnect.iconnect.prepareCall(sql);
            rsH = stmH.executeQuery();
            while(rsH.next())
            {
                cmb.addItem(rsH.getString(2));
            }
        }catch(Exception ex){ex.printStackTrace();}    
        finally{stmH = null;rsH = null;}
    }
    ////////////////////////// Combobox Skill
    public void listSkills()
    {
        CallableStatement stmH;
        ResultSet rsH;
        try
        {
            String sql = "{call loadSkills}";
            stmH = MyConnect.iconnect.prepareCall(sql);
            rsH = stmH.executeQuery();
            while(rsH.next())
            {
                skills.add(rsH.getString(2));
            }
        }catch(Exception ex){ex.printStackTrace();}    
        finally{stmH = null;rsH = null;}
    }
     //////////////////////// SELECT AND JOB LIST ////////////////////
    public void addList()
    {
        try
        {    
        Object[] abc = (Object[])JlistSkill.getSelectedValues();
        Object[] cba = (Object[])JlistSkill.getSelectedValues();
        for(int i = cba.length - 1;i >=0;i--)
        {        
            selectedlist.addElement(abc[i]);
        }    
        JlistSkill.setModel(skilllist);
        jlistSelected.setModel(selectedlist);
        }catch(Exception ex){ex.printStackTrace();}
    }  
    
    public void removeList()
    {
        try
        {    
        Object[] abc = (Object[])jlistSelected.getSelectedValues();
        Object[] cba = (Object[])jlistSelected.getSelectedValues();
        for(int i = cba.length - 1;i >=0;i--)
        {        
            selectedlist.removeElement(abc[i]);
        }    
        JlistSkill.setModel(skilllist);
        jlistSelected.setModel(selectedlist);
        }catch(Exception ex){ex.printStackTrace();}
    }
    ///////////////////////////////// Allow Update /////////////////////////////
    ///////////////////////////////// Allow Update /////////////////////////////
    ///////////////////////////////// Allow Update /////////////////////////////
    public void updateJobSeeker()
    {
        try
        {
            String sql = "{call updateJS(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}";
            stm = MyConnect.iconnect.prepareCall(sql);
            stm.setInt(1,id);
            stm.setString(2,jtxtfFullName.getText());
            stm.setString(3,jtxtfBirthday.getText());
            stm.setString(4,jcmbGender.getSelectedItem().toString());
            stm.setString(5,jtxtfAddress.getText());
            stm.setString(6,jtxtfEdu.getText());
            stm.setInt(7,Integer.parseInt(jtxtfExp.getText()));
            stm.setFloat(8,Float.parseFloat(jtxtfSalary.getText()));
            stm.setString(9,jtxtfEmail.getText());
            stm.setString(10,jtxtfPhone.getText());
            stm.setString(11,jtxtfImage.getText());
            stm.setString(12,"Available");
            
            getNamefromID("getNameSkills");
            stm.setInt(13,number);
            
            getSelects(jcmbClass);
            getNamefromID("getNameClasses");
            stm.setInt(14,number);
            
            getSelects(jcmbLocation);
            getNamefromID("getNameLocations");
            stm.setInt(15,number);
            
            getSelects(jcmbLevel);
            getNamefromID("getNameLevels");
            stm.setInt(16,number);
            
            getSelects(jcmbJob);
            getNamefromID("getNameJobs");
            stm.setInt(17,number);
            /////////////////////////////////
            if(!stm.execute()){JOptionPane.showMessageDialog(this,"Update successful");}
            else{JOptionPane.showMessageDialog(this,"Update fail");}
        }catch(Exception ex){ex.printStackTrace();}    
    }    
    ///////////////////////////////////////////////////
    public void getNamefromID(String a)
    {
        CallableStatement stmH;
        ResultSet rsH;
        try
        {
            String sql = "{call "+a+"(?)}";
            stmH = MyConnect.iconnect.prepareCall(sql);
            stmH.setString(1,name);
            rsH = stmH.executeQuery();
            while(rsH.next()){number = rsH.getShort(1);}
        }catch(Exception ex){ex.printStackTrace();}    
        finally{stmH = null;rsH = null;}
    }
    //////////////////////////////////////////////////
    public void getSelects(JComboBox cmb)
    {
        try
        {
            name = String.valueOf(cmb.getSelectedItem());
        }catch(Exception ex){ex.printStackTrace();}    
    }
    ///////////////////// CHECK VALUSE //////////////////////
    ///////////////////// CHECK VALUSE //////////////////////
    ///////////////////// CHECK VALUSE //////////////////////
    public boolean myPattern(String a,String b,String c)
    {
        Pattern pat = Pattern.compile(a);
        Matcher mat = pat.matcher(b);
        if(mat.find()){return true;}
        else{JOptionPane.showMessageDialog(this, c,"Warning",JOptionPane.WARNING_MESSAGE);return false;}
    }
    public String ckFullName = "^[A-z]+([\\ ]?[A-z]*)$";
    public String ckAddress = "^[A-z0-9]+([\\ \\/]?[A-z0-9]*)$";
    public String ckEmail = "[a-zA-Z0-9]+([_\\.\\-]?[a-zA-Z0-9])*@[a-zA-Z0-9]+([\\.\\-]?[a-zA-Z0-9]+)*(\\.[a-zA-Z0-9]+)+";
    public String ckPhone = "[0-9]+";
    public String ckImage = "[A-z0-9]+[.](gif|png|)";
    public String ckEdu = "^[A-z]+([\\ ]?[A-z]*)$";
    public boolean checkInput()
    {
        if(myPattern(ckFullName,jtxtfFullName.getText(),"Full name can not blank and do not have 2 whilespace.") == false)
        {jtxtfFullName.requestFocus();jlbWFullName.setIcon(null);jlbWFullName.setVisible(false);return false;}
        else if(myPattern(ckFullName,jtxtfFullName.getText(),"Full name can not blank and do not have 2 whilespace.") == true)
        {jlbWFullName.setIcon(icon);jlbWFullName.setVisible(true);}
        
        if(myPattern(ckAddress,jtxtfAddress.getText(),"Address can not blank and do not have 2 whilespace.") == false)
        {jtxtfAddress.requestFocus();jlbWAddress.setIcon(null);jlbWAddress.setVisible(false);return false;}
        else if(myPattern(ckAddress,jtxtfAddress.getText(),"Address can not blank and do not have 2 whilespace.") == true)
        {jlbWAddress.setIcon(icon);jlbWAddress.setVisible(true);}
        
        if(myPattern(ckEmail,jtxtfEmail.getText(),"Email can not blank and must be in format.") == false)
        {jtxtfEmail.requestFocus();jlbWEmail.setIcon(null);jlbWEmail.setVisible(false);return false;}
        else if(myPattern(ckEmail,jtxtfEmail.getText(),"Email can not blank and must be in format.") == true)
        {jlbWEmail.setIcon(icon);jlbWEmail.setVisible(true);}
        
        if(myPattern(ckPhone,jtxtfPhone.getText()," Phone can not blank and use number.") == false)
        {jtxtfPhone.requestFocus();jlbWPhone.setIcon(null);jlbWPhone.setVisible(false);return false;}
        else if(myPattern(ckPhone,jtxtfPhone.getText()," Phone can not blank and use number.") == true)
        {jlbWPhone.setIcon(icon);jlbWPhone.setVisible(true);}    
        
        if(myPattern(ckPhone,jtxtfExp.getText(),"Experience can not blank and use number.") == false)
        {jtxtfExp.requestFocus();jlbWExp.setIcon(null);jlbWExp.setVisible(false);return false;}
        else if(myPattern(ckPhone,jtxtfExp.getText(),"Experience can not blank and use number.") == true)
        {jlbWExp.setIcon(icon);jlbWExp.setVisible(true);}    
        
        if(myPattern(ckFullName,jtxtfEdu.getText(),"Education can not blank and use number.") == false)
        {jtxtfEdu.requestFocus();jlbWEdu.setIcon(null);jlbWEdu.setVisible(false);return false;}
        else if(myPattern(ckFullName,jtxtfEdu.getText(),"Education can not blank and use number.") == true)
        {jlbWEdu.setIcon(icon);jlbWEdu.setVisible(true);}    
        
        if(myPattern(ckPhone,jtxtfSalary.getText(),"Salary can not blank and use number.") == false)
        {jtxtfSalary.requestFocus();jlbWSalary.setIcon(null);jlbWSalary.setVisible(false);return false;}
        else if(myPattern(ckPhone,jtxtfSalary.getText(),"Salary can not blank and use number.") == true)
        {jlbWSalary.setText("");jlbWSalary.setVisible(true);}    
        ////////////
        return true;
    }       
     ///////////////////// SET TEXT ////////////////////// 
    ///////////////////// SET TEXT //////////////////////
    ///////////////////// SET TEXT //////////////////////
    public void setTexts(String a)
    {
        jtxtfFullName.setText(a);
        jtxtfAddress.setText(a);
        jtxtfEmail.setText(a);
        jtxtfPhone.setText(a);
        jtxtfExp.setText(a);
        jtxtfEdu.setText(a);
        jtxtfSalary.setText(a);
        //////////////////////////////
        jlbWFullName.setIcon(null);
        jlbWAddress.setIcon(null);
        jlbWEmail.setIcon(null);
        jlbWPhone.setIcon(null);
        jlbWExp.setIcon(null);
        jlbWEdu.setIcon(null);
        jlbWSalary.setIcon(null);
    }
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jtxtfFullName = new javax.swing.JTextField();
        jtxtfBirthday = new ObservingTextField();
        jtxtfAddress = new javax.swing.JTextField();
        jtxtfEmail = new javax.swing.JTextField();
        jtxtfPhone = new javax.swing.JTextField();
        jtxtfExp = new javax.swing.JTextField();
        jtxtfImage = new javax.swing.JTextField();
        jtxtfEdu = new javax.swing.JTextField();
        jcmbGender = new javax.swing.JComboBox();
        jcmbLevel = new javax.swing.JComboBox();
        jLabel11 = new javax.swing.JLabel();
        jlbWFullName = new javax.swing.JLabel();
        jlbWBirth = new javax.swing.JLabel();
        jlbWAddress = new javax.swing.JLabel();
        jlbWEmail = new javax.swing.JLabel();
        jlbWPhone = new javax.swing.JLabel();
        jlbWExp = new javax.swing.JLabel();
        jlbWImage = new javax.swing.JLabel();
        jlbWEdu = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jlbID = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jcmbJob = new javax.swing.JComboBox();
        jcmbClass = new javax.swing.JComboBox();
        jcmbLocation = new javax.swing.JComboBox();
        jtxtfSalary = new javax.swing.JTextField();
        jlbWSalary = new javax.swing.JLabel();
        lbl_Avatar = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        JlistSkill = new javax.swing.JList();
        jScrollPane2 = new javax.swing.JScrollPane();
        jlistSelected = new javax.swing.JList();
        jbtnAddSkill = new javax.swing.JButton();
        jbtnRemove = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jbtnUpdate = new javax.swing.JButton();
        jbtnReset = new javax.swing.JButton();
        jbtnCancel = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Update Job-Seeker", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 18), new java.awt.Color(0, 51, 51))); // NOI18N
        jPanel1.setPreferredSize(new java.awt.Dimension(800, 600));

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Personal Information", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(0, 51, 51))); // NOI18N

        jLabel1.setText("Full name");

        jLabel2.setText("Birthday");

        jLabel3.setText("Gender");

        jLabel4.setText("Address");

        jLabel5.setText("Education");

        jLabel6.setText("Experiences");

        jLabel8.setText("Email");

        jLabel9.setText("Phone");

        jLabel10.setText("Image");

        jtxtfBirthday.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jtxtfBirthdayMouseClicked(evt);
            }
        });

        jtxtfImage.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jtxtfImageMouseClicked(evt);
            }
        });

        jcmbGender.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Male", "Female" }));

        jLabel11.setText("Level");

        jLabel15.setText("ID");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel8)
                            .addComponent(jLabel9)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4)
                            .addComponent(jLabel3)
                            .addComponent(jLabel2)
                            .addComponent(jLabel10)
                            .addComponent(jLabel11)
                            .addComponent(jLabel5))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(24, 24, 24)
                                .addComponent(jtxtfBirthday, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jlbWBirth, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addGap(26, 26, 26)
                                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                .addComponent(jtxtfEdu, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(2, 2, 2)
                                                .addComponent(jlbWEdu))
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                .addComponent(jtxtfEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(2, 2, 2)
                                                .addComponent(jlbWEmail))
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                .addComponent(jtxtfPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jlbWPhone))
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                .addComponent(jtxtfExp, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(jlbWExp))
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                    .addComponent(jcmbLevel, javax.swing.GroupLayout.Alignment.LEADING, 0, 150, Short.MAX_VALUE)
                                                    .addComponent(jtxtfImage, javax.swing.GroupLayout.Alignment.LEADING))
                                                .addGap(2, 2, 2)
                                                .addComponent(jlbWImage))))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addGap(24, 24, 24)
                                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jcmbGender, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jtxtfAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jtxtfFullName, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jlbWAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jlbWFullName, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addComponent(jlbID))))
                                .addGap(0, 18, Short.MAX_VALUE))))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addComponent(jLabel15))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel15)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jlbID)
                        .addGap(18, 18, 18)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jtxtfFullName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jlbWFullName, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlbWBirth, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel2)
                        .addComponent(jtxtfBirthday, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jcmbGender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlbWAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel4)
                        .addComponent(jtxtfAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(jtxtfEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlbWEmail))
                .addGap(15, 15, 15)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jtxtfPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlbWPhone))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jtxtfExp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlbWExp))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(jtxtfImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlbWImage))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jcmbLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jtxtfEdu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlbWEdu)))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Job Detail", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(0, 51, 51))); // NOI18N

        jLabel7.setText("Require Salary");

        jLabel12.setText("Require Job");

        jLabel13.setText("Require Class ");

        jLabel14.setText("Require Location");

        lbl_Avatar.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(102, 102, 102)));
        lbl_Avatar.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel12)
                    .addComponent(jLabel13)
                    .addComponent(jLabel14)
                    .addComponent(jLabel7))
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jcmbLocation, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(jtxtfSalary, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jlbWSalary))
                            .addComponent(jcmbClass, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(16, 16, 16)
                        .addComponent(jcmbJob, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addComponent(lbl_Avatar, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(17, 17, 17)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(jcmbJob, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(jcmbClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(21, 21, 21)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(jcmbLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jtxtfSalary, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlbWSalary))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(lbl_Avatar, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Personal Skills", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(0, 51, 51))); // NOI18N

        JlistSkill.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                JlistSkillMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(JlistSkill);

        jScrollPane2.setViewportView(jlistSelected);

        jbtnAddSkill.setText("Add");
        jbtnAddSkill.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnAddSkillActionPerformed(evt);
            }
        });

        jbtnRemove.setText("Remove");
        jbtnRemove.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnRemoveActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jbtnAddSkill, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbtnRemove))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(31, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane2)
                    .addComponent(jScrollPane1))
                .addContainerGap())
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jbtnAddSkill)
                .addGap(62, 62, 62)
                .addComponent(jbtnRemove)
                .addGap(72, 72, 72))
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Button Control", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(0, 51, 51))); // NOI18N

        jbtnUpdate.setText("Update");
        jbtnUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnUpdateActionPerformed(evt);
            }
        });

        jbtnReset.setText("Reset");
        jbtnReset.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnResetActionPerformed(evt);
            }
        });

        jbtnCancel.setText("Cancel");
        jbtnCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnCancelActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jbtnUpdate)
                .addGap(57, 57, 57)
                .addComponent(jbtnReset)
                .addGap(27, 27, 27)
                .addComponent(jbtnCancel))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jbtnUpdate)
                    .addComponent(jbtnReset)
                    .addComponent(jbtnCancel))
                .addContainerGap())
        );

        jButton1.setText("jButton1");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(jButton1)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(17, 17, 17)
                        .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(9, 9, 9)
                        .addComponent(jButton1))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 807, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 564, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jtxtfBirthdayMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtxtfBirthdayMouseClicked
        
    }//GEN-LAST:event_jtxtfBirthdayMouseClicked

    private void JlistSkillMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_JlistSkillMouseClicked
        // TODO add your handling code here:
        try
        {
            int k = JlistSkill.getSelectedIndex();
            name = String.valueOf(skilllist.getElementAt(k));
        }catch(Exception ex){ex.printStackTrace();}
    }//GEN-LAST:event_JlistSkillMouseClicked

    private void jbtnAddSkillActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnAddSkillActionPerformed
        // TODO add your handling code here:   
         addList();
    }//GEN-LAST:event_jbtnAddSkillActionPerformed

    private void jbtnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnRemoveActionPerformed
        // TODO add your handling code here:
        removeList();
    }//GEN-LAST:event_jbtnRemoveActionPerformed

    private void jbtnUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnUpdateActionPerformed
        // TODO add your handling code here:
        if(checkInput() == true)
        {updateJobSeeker();}     
    }//GEN-LAST:event_jbtnUpdateActionPerformed

    private void jbtnResetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnResetActionPerformed
        // TODO add your handling code here:
        setTexts("");
    }//GEN-LAST:event_jbtnResetActionPerformed

    private void jbtnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnCancelActionPerformed
        // TODO add your handling code here:
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setResizable(false);
    }//GEN-LAST:event_jbtnCancelActionPerformed

    private void jtxtfImageMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtxtfImageMouseClicked
        // TODO add your handling code here:
        JFileChooser MyChoose = new JFileChooser();
        MyChoose.setFileSelectionMode(JFileChooser.FILES_ONLY);
        MyChoose.setFileFilter(null);
        int i = MyChoose.showOpenDialog(this);
        if (i == JFileChooser.APPROVE_OPTION) {
        File f = MyChoose.getSelectedFile();
     //   lbl_Avatar.setIcon(new ImageIcon(f.getPath()));
        filePath=f.getPath();
        imagePath=f.getName();
        jtxtfImage.setText(f.getName());
        ImageIcon ic = new ImageIcon(f.getPath());
        Image tinyPic = ic.getImage();
        tinyPic =  tinyPic.getScaledInstance(140, 170,Image.SCALE_SMOOTH);
        ic.setImage(tinyPic);
        lbl_Avatar.setIcon(ic);
        }
    }//GEN-LAST:event_jtxtfImageMouseClicked

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(this,id);
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JList JlistSkill;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JButton jbtnAddSkill;
    private javax.swing.JButton jbtnCancel;
    private javax.swing.JButton jbtnRemove;
    private javax.swing.JButton jbtnReset;
    private javax.swing.JButton jbtnUpdate;
    private javax.swing.JComboBox jcmbClass;
    private javax.swing.JComboBox jcmbGender;
    private javax.swing.JComboBox jcmbJob;
    private javax.swing.JComboBox jcmbLevel;
    private javax.swing.JComboBox jcmbLocation;
    private javax.swing.JLabel jlbID;
    private javax.swing.JLabel jlbWAddress;
    private javax.swing.JLabel jlbWBirth;
    private javax.swing.JLabel jlbWEdu;
    private javax.swing.JLabel jlbWEmail;
    private javax.swing.JLabel jlbWExp;
    private javax.swing.JLabel jlbWFullName;
    private javax.swing.JLabel jlbWImage;
    private javax.swing.JLabel jlbWPhone;
    private javax.swing.JLabel jlbWSalary;
    private javax.swing.JList jlistSelected;
    private javax.swing.JTextField jtxtfAddress;
    private javax.swing.JTextField jtxtfBirthday;
    private javax.swing.JTextField jtxtfEdu;
    private javax.swing.JTextField jtxtfEmail;
    private javax.swing.JTextField jtxtfExp;
    private javax.swing.JTextField jtxtfFullName;
    private javax.swing.JTextField jtxtfImage;
    private javax.swing.JTextField jtxtfPhone;
    private javax.swing.JTextField jtxtfSalary;
    private javax.swing.JLabel lbl_Avatar;
    // End of variables declaration//GEN-END:variables
}
